const fn = (arr) => {
  return arr.filter(item => item > 2)
}

console.log(fn([0,9,1,0,2,1]));  // 支持到了ie9

window.onload = () => {
  document.write(`${fn([0,9,1,0,2,1])}`)
}